<input type="hidden" th:field="*{fields['__${field.name}__'].value}" th:id="${field.idOverride != null ? field.idOverride : ''}" /> 